<?php
class Home_model extends CI_Model {

    function __construct() {
        parent::__construct();
    }

    function get() {
        $q = $this->db->get('users');

        foreach ($q->result() as $row){
            $res = $row->username;
        }
        return $res;
    }
}

?>
